﻿using System.Collections.Generic;
using System.Linq;

namespace aboveUHSReader
{
  internal class UHSRootNode : UHSNode
  {
    public List<UHSNode> LinkNodes = new List<UHSNode>();

    public UHSRootNode() : base("Root")
    {
    }

    public void AddLink(UHSNode node)
    {
      LinkNodes.Add(node);
    }

    internal UHSNode LinkNode(int id)
    {
      return LinkNodes.FirstOrDefault(node => node.Id == id);
    }
  }
}